@import url('https://fonts.googleapis.com/css?family=Manrope:700|Manrope:400');

.cursor-letter {
  position: fixed;
  top: 0;
  left: 0;
  width: 25px;
  height: 25px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
}

.cursor-letter svg path,
.cursor-letter svg rect,
.cursor-letter svg polygon,
.cursor-letter svg polyline,
.cursor-letter svg line {
  fill: rgb(0, 0, 0);
  stroke: rgb(255, 255, 255);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-linejoin: round;
  backdrop-filter: blur(20px); 
}

:root {
  --text: hsl(0, 0%, 99%);
  --textDim: hsl(0, 0%, 60%);
  --background: hsl(0, 0%, 7%);
  --primary: hsl(155, 100%, 65%);
  --primaryBg: hsla(155, 100%, 65%, 1%);
  --primaryHi: hsla(155, 100%, 75%, 25%);
  --primaryFg: hsl(155, 100%, 85%);
  --secondary: hsl(156, 51%, 14%);
  --secondaryFg: hsl(156, 51%, 75%);
  --secondaryBg: hsla(156, 51%, 14%, 5%);
  --secondaryHi: hsla(156, 51%, 30%, 50%);
  --accent: hsl(155, 100%, 94%);
  --accentBg: hsla(155, 100%, 94%, 1%);
  --accentHi: hsla(155, 100%, 100%, 25%);
}


.about-fp {
  font-family: 'Manrope';
  font-weight: 400;
  /* background-color: var(--background); */
  color: var(--text);
  padding: 0 10%;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100vh;
  overflow: hidden;
  margin-top: 40px;
  position: relative;
}


.about-grid {
  position: absolute;
  height: 100%;
  /* weight: 100%; */
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  z-index: -1;
}

.about-grid-svg {
  height: 80%;
  width: 80%;
  position: relative;
  z-index: 1;
}

.about-blur {
  height: 12rem;
  width: 12rem;
  background-color: var(--primary);
  filter: blur(100px);
  border-radius: 100px;
  z-index: 0;
  position: absolute;
}

.about-title {
  font-size: 9rem;
  font-weight: 700;
  letter-spacing: -0.8rem;
  display: flex;
  flex-direction: column;
  position: absolute;
  justify-content: center;
  align-self: center;
  height: 100%;
  /* z-index: 1000; */
}

.about-title > p {
  margin: 0;
  line-height: 10rem;
  width: auto;
  margin-top: -20px;
}

.about-title > p:nth-child(1){
  align-self: flex-start;
}

.about-title > p:nth-child(2){
  color: var(--primary);
  align-self: flex-end;
}

.about-title > p:nth-child(3){
  align-self: flex-end;
}

.material-icons {
  display: none;
  fill: var(--text);
}



.about-button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: absolute;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  height: 50px;
  width: 160px;
  z-index: 9999;
}

.btn-abt {
  height: 50px;
  width: 160px;
  clip-path: path("M 0 25 C 0 -5, -5 0, 80 0 S 160 -5, 160 25, 165 50 80 50, 0 55, 0 25");
  border: none;
  border-radius: 13px;
  background-color: var(--primaryBg);
  box-shadow: 0px -3px 15px 0px var(--primaryHi) inset;
  color: var(--primaryFg);
  font-family: "Manrope";
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: absolute;
  transform: translateY(0px);
  transition: all 0.2s ease;
}

.about-button:hover >  {
  transform: translateY(5px);
}

.about-button.first {
  top: 15%;
  right: 20%;
}

.about-button.sec {
  bottom: 13%;
  right: 9%;
}

.about-button.sec > .btn-abt {
  background-color: var(--accentBg);
  box-shadow: 0px -3px 15px 0px var(--accentHi) inset;
  color: var(--accentFg);
}

.about-button.sec > span {
  background-color: var(--accentHi);
}

.about-button.third {
  bottom: 25%;
  left: 10%;
}

.about-button.third > .btn-abt {
  background-color: var(--secondaryBg);
  box-shadow: 0px -3px 15px 0px var(--secondary) inset;
  color: var(--secondaryFg);
}

.about-button.third > span {
  background-color: var(--secondaryHi);
}


.top-right {
  position: absolute;
  top: 0;
  right: 0;
  z-index: -1;
  opacity: 50%;
}

.bottom-left {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: -1;
  opacity: 50%;
}



@media screen and (max-width: 1000px) {
  .about-title {
    font-size: 4rem;
    letter-spacing: -0.3rem;
  }

  .about-title > p {
    line-height: 5rem;
  }

  .about-button {
    width: 140px;
    height: 45px;
  }

  .btn-abt {
    width: 140px;
    height: 45px;
    font-size: 0.9rem;
  }

  .about-button.first {
    top: 12%;
    right: 5%;
  }

  .about-button.sec {
    bottom: 12%;
    right: 5%;
  }

  .about-button.third {
    bottom: 20%;
    left: 5%;
  }
}

@media screen and (max-width: 600px) {
  .about-title {
      font-size: 2.6rem;
  letter-spacing: 0rem; 
  text-align: center;    
  }

  .about-title > p {
     line-height: 2.5rem;
  word-spacing: 0.1rem;  
  margin-top: 0.5rem;
  }

  .about-button {
    width: 120px;
    height: 40px;
  }

  .btn-abt {
    width: 120px;
    height: 40px;
    font-size: 0.8rem;
  }

  .about-button.first {
    top: 16%; 
    right: 5%;
  }

  .about-button.sec {
    bottom: 23%; 
    right: 5%;
  }

  .about-button.third {
    bottom: 31%; 
    left: 5%;
  }
}

 .about-glass-container {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    max-width: 1000px;
    margin: 2rem auto;
  }

  .about-mission-container {
    container-name: about-mission-container;
    container-type: inline-size;
    max-width: 100%;
    min-width: 17.5rem;
    width: 100%;
  }

.about-mission {
  background: var(--color-bg, rgba(0, 0, 0, 0.2));
  border: thin solid var(--color-border, rgba(255, 255, 255, 0.1));
  border-radius: 1rem;
  box-shadow: 0 0.5cqw 1cqw rgba(0, 0, 0, 0.2);
  display: flex;
  overflow: hidden;
  flex-wrap: wrap;
  
}

.left-c{
      margin-left: 80px;
}
.right-c {
    margin-right: 80px;
}
.about-mission-img {
  flex: 0 0 300px; /* fixed width for image section */
  max-width: 300px;
  min-height: 250px;
  display: grid;
}

  container-aware-img {
    display: grid;
    width: 100%;
    height: 100%;
    position: relative;
  }

  container-aware-img img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
  }

  container-aware-img img.cai-loaded {
    opacity: 1;
    visibility: visible;
  }

  .cai-placeholder {
    background: #e1c17d;
    height: 100%;
    width: 100%;
  }

.about-mission-content {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
}

  .about-mission-eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 0.5rem;
  }

  .about-mission-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1rem;
        color: yellow;
        text-align: start;
  }

  .about-mission-description {
    font-size: 1rem;
    opacity: 0.8;
  }

  .about-mission-overlay-link {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: none;
  }

  @container about-mission-container (max-width: 37.5em) {
    .about-mission {
    display: flex;
    flex-direction: column;
  }

  .reverse-layout {
    flex-direction: column-reverse; /* Image appears before content */
  }

  .about-mission-img {
    --img-ar: 600 / 375;
    max-width: 100%;
  }
}
  @container about-mission-container (max-width: 25em) {
    .about-mission-img {
      --img-ar: 400 / 250;
    }

    .about-mission-content {
      padding: 1rem;
    }

    .about-mission-overlay-link {
      display: block;
    }
    
  }
  container-aware-img:has(img.cai-loaded) .cai-placeholder {
  display: none;
}

@layer reset, base, utilities, components, layout, overrides;

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@property --direction {
  syntax: '<number>';
  initial-value: 1;
  inherits: true;
}

@layer reset {
  *,
  ::before,
  ::after {
    box-sizing: border-box;
  }

  :where(:not(dialog)) {
    margin: 0;
  }

  :where(html) {
    -webkit-text-size-adjust: none;

    @media (prefers-reduced-motion: no-preference) {
      scroll-behavior: smooth;
    }
  }

  :where(body) {
    min-block-size: 100svb;
    -webkit-font-smoothing: antialiased;
  }
}

@layer base {
  html {
    --surface-1: oklch(20% 0.03 269);
    --surface-2: oklch(26% 0.04 269);
    --text-1: oklch(91% 0.03 61);
    --body: 400 1rem/1.5rem system-ui, sans-serif;
    --display: 400 3.562rem/4rem system-ui, sans-serif;
    --display-small: 400 2.25rem/2.75rem system-ui, sans-serif;
    --label: 500 0.875rem/1.25rem system-ui, sans-serif;
    --title: 400 1.375rem/1.75rem system-ui, sans-serif;
    color-scheme: dark;
  }

 
}

@layer layout {
  .section-team {
    display: grid;
    max-inline-size: 100%;
    min-block-size: 100svb;
    overflow-x: clip;
    padding-block: 80px;
    place-items: center;
  }

  .section-wrapper-t {
    display: grid;
    place-items: center;
  }

  .header-team {
    display: grid;
    place-items: center;
    gap: 16px;
    z-index: 2;

    /* lg-n-above */
    @media (width >=1024px) {
      /* Placing header and cards in the same grid cell to stack them */
      /* Both elements use grid-area: 1/1 to overlap within the same area */
      grid-area: 1/1;
    }
  }

  .hgroup-t {
    display: grid;
    place-items: center;
    gap: 8px;
  }

  .headline-team {
    font: var(--display-small);

    /* lg-n-above */
    @media (width >=1200px) {
      font: var(--display);
    }
  }

  .section-link {
    color: var(--text-1);
    text-decoration: underline;
    font: var(--label);

    /* lg-n-below */
    @media (width < 1024px) {
      display: none;
    }
    .avatar-link-wrapper {
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}

.tooltiptext {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
}
  }

  .cards {
    list-style: none;
    padding: 0;

    /* lg-n-below */
    @media (width < 1024px) {
      display: grid;
      grid-auto-flow: column;
      gap: 32px;
      max-inline-size: 100%;
      overflow-x: scroll;
      padding-block: 32px;
      padding-inline: 32px;
    }

    /* lg-n-above */
    @media (width >=1024px) {
      --avatar-opacity: 1;
      --avatar-img-scale: 1;
      --tooltip-visibility: hidden;
      --tooltip-opacity: 0;
      --animation-state: running;

      display: grid;
      /* Placing header and cards in the same grid cell to stack them */
      /* Both elements use grid-area: 1/1 to overlap within the same area */
      grid-area: 1/1;
      min-block-size: 700px;
      place-items: center;

      &:has(.avatar-link-wrapper:is(:hover, :focus-visible, :active)) {
        --animation-state: paused;
        /* Reduces opacity of non-hovered avatars to create a layered effect */
        --avatar-opacity: 0.4;
      }
    }
  }
  .cards {
  @media (width < 1024px) {
    display: grid;
    grid-auto-flow: column;
    gap: 32px;
    max-inline-size: 100%;
    overflow-x: auto;           /* Enable horizontal scroll */
    overflow-y: hidden;         /* ❌ Disable vertical scroll */
    padding-block: 32px;
    padding-inline: 32px;
    scroll-snap-type: x mandatory; /* Optional: Snap effect */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  }
}

@media (max-width: 600px) {
  .card .tooltiptext {
    position: relative;       /* make it flow below image */
    left: 50%;                /* center horizontally */
    transform: translateX(-50%);
    margin-top: 12px;         /* spacing between image and text */
    text-align: center;       /* center the text itself */
  }
}


  .card {
    padding: 0;

    /* lg-n-above */
    @media (width >=1024px) {
      --radius: min(620px, 40cqi);
      --offset-per-child: calc(360deg / (var(--nth-siblings) + 1));
      --angle-offset: calc(var(--nth-child) * var(--offset-per-child));
      --inline-ratio: 1/1;
      /* Keeps the horizontal scaling unchanged */
      --block-ratio: 1/2;
      /* Reduces vertical scaling, making it an oval */

      /* Adjusts tooltip direction based on avatar position */
      /* Future improvement: Replace with the sign() CSS function when it becomes widely supported */
      /* Reference: https://developer.mozilla.org/en-US/docs/Web/CSS/sign */
      --direction: min(max(calc(cos((var(--angle) + var(--angle-offset))) * -100), -1), 1);

      /* Stack all cards in the same grid cell */
      grid-area: 1/1;

      /* Based on Bramus' article, modified with inline/block ratios to create an oval shape */
      /* Source: https://web.dev/articles/css-trig-functions */

      translate: calc(cos((var(--angle) + var(--angle-offset))) * var(--radius) * var(--inline-ratio))
        calc(sin((var(--angle) + var(--angle-offset))) * var(--radius) * var(--block-ratio) * -1);

      animation: adjust-angle linear 40s infinite reverse var(--animation-state);
    }
  }

  /* Continuously rotates the avatars in a circular motion */
  @keyframes adjust-angle {
    to {
      --angle: 360deg;
    }
  }

  .avatar-link-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-1);

    &:is(:hover, :focus-visible, :active) {
      --avatar-img-scale: 1.1;
      --avatar-opacity: 1;
      --tooltip-opacity: 1;
      --tooltip-visibility: visible;
    }

    /* lg-n-below */
    @media (width < 1024px) {
      flex-direction: column;
      gap: 16px;
    }
  }

  .visual {
    aspect-ratio: 1;
    border-radius: 1rem;
    box-shadow: 0 2px 4px 0 oklch(0 0 0 / 10%);
    inline-size: 240px;
    opacity: var(--avatar-opacity);
    overflow: clip;
    transition: opacity 0.3s ease;

    /* lg-n-above */
    @media (width >=1024px) {
      inline-size: 144px;
      border-radius: 1e5px;
    }

  }

  .avatar-img {
    background-color: var(--surface-2);
    block-size: 100%;
    display: block;
    inline-size: 100%;
    object-fit: cover;
    scale: var(--avatar-img-scale, 1);
    transition: scale 0.3s ease;
  }

  .tooltiptext {
    display: grid;
    gap: 4px;

    /* lg-n-above */
    @media (width >=1024px) {
      position: absolute;
      /* Adjusts tooltip placement based on avatar position */
      /* Moves the tooltip to the left or right depending on the avatar's location */
      /* --direction is either 1 (right) or -1 (left) */
      max-inline-size: 20ch;
      opacity: var(--tooltip-opacity);
      transition-duration: 0.3s;
      transition-property: opacity, visibility;
      transition-timing-function: ease;
      translate: 110% 0;
      visibility: var(--tooltip-visibility);

      /* make the tooltips non-interactive */
      pointer-events: none;
      user-select: none;

      /* Adjusts text alignment based on avatar position */
      /* Ensures the tooltip text aligns properly when shifted left or right */
      @container style(--direction: -1) {
        text-align: end;
        translate: -110% 0;
      }
    }
  }

  .team-name {
    font: var(--title);
  }
}

@media (max-width: 600px) {
    .card-top {
        margin-top: 20px;
        padding-bottom: 30%; 
    }
    .left-c{
      margin-left: 0px;
    }
    .right-c {
     margin-right: 0px;
    }
   
}


/* Base state: fully visible, but ready to animate */
.stat .icon svg path,
.stat .icon svg circle,
.stat .icon svg polygon {
  stroke-dasharray: 70;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s ease;
}

/* Hover: animate drawing only on this icon */
.stat:hover .icon svg path,
.stat:hover .icon svg circle,
.stat:hover .icon svg polygon {
  stroke-dashoffset: 60;
  animation: draw 1s ease forwards;
}

/* Keyframes to animate the draw effect */
@keyframes draw {
  from {
    stroke-dashoffset: 60;
  }
  to {
    stroke-dashoffset: 0;
  }
}


/* video  */

.about-video-wrapper {
  height: 200vh;
  background: #000;
  position: relative;
}

.about-video-container {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.about-video-box {
  position: relative;
  width: 40vw;
  transition: width 0.3s ease;
}

.about-video-box video {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
  border: 2px solid #000; /* Black border fix */
}

.about-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  clip-path: inset(0);
  -webkit-clip-path: inset(0);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2;
  transition: clip-path 0.4s ease-out;
}

.section-team {
    position: relative;
    z-index: 11;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .about-video-box {
    width: 60vw;
  }
}

@media (max-width: 768px) {
  .about-video-box {
    width: 80vw;
  }

  .about-video-overlay {
    padding: 1.5rem;
  }

  .about-video-overlay h2 {
    font-size: 1.5rem;
  }

  .about-video-overlay p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .about-video-box {
    width: 90vw;
  }

  .about-video-overlay h2 {
    font-size: 1.2rem;
  }

  .about-video-overlay p {
    font-size: 0.9rem;
  }
}

@media (min-width: 768px) {
  .about-glass-container + .about-glass-container {
    margin-top: 5rem; /* or any value you prefer */
  }
}
@media (max-width: 600px) {
    .paddig-co {
        padding: 20px;
    }
    .scroller[data-animated="true"] .scroller__inner {
    width: 336px;
    width: -moz-max-content;
    /* width: max-content; */
    flex-wrap: nowrap;
    -webkit-animation: scroll var(--_animation-duration, 40s) var(--_animation-direction, forwards) linear infinite;
    animation: scroll var(--_animation-duration, 40s) var(--_animation-direction, forwards) linear infinite;
}
}

.jo-dot_11{
  top: 80px;
}
.jo-dot_22{
  top: 320px;
}
.jo-dot_33{
  top: 550px;
}
.jo-dot_44{
  top: 790px;
}
.jo-dot_55{
  top: 1010px;
}


.journey-line-ab {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 78%;
    background-color: #555;
    z-index: 1;
}
.avatar-link-wrapper {
  position: relative;
  display: inline-block;
}

.tooltiptext {
  position: absolute;
  /* top: 100%;
  left: 50%;
  transform: translateX(-90%); */
  background-color: #111;
  color: #fff;
  padding: 10px 7px;
  border-radius: 8px;
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.avatar-link-wrapper:hover .tooltiptext {
  opacity: 1;
}



.card:nth-last-child(1) .tooltiptext {
  left: 40%; 
  transform: translateX(-70%);
}
.sp-acerss {
    margin-top: 40px;
}

@media (max-width: 720px) {
    .journey-line-ab {
        left: 6%;
        height: 81%;
    }
    .jo-dot_11{
      top: 80px;
    }
    .jo-dot_22{
      top: 350px;
    }
    .jo-dot_33{
      top: 650px;
    }
    .jo-dot_44{
      top: 950px;
    }
    .jo-dot_55{
  top: 1250px;
    }
    .f0-otr {
    padding: 27px;
}
.sp-acerss {
    margin-top: -180px;
}

}
